//
//  M_PhotoOneCollectionViewCell.m
//  Model
//
//  Created by apple on 2018/7/11.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "M_PhotoOneCollectionViewCell.h"

@implementation M_PhotoOneCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backView.layer.cornerRadius = 5;
    self.backView.layer.masksToBounds = YES;
    self.headImgView.layer.cornerRadius = 14;
    self.headImgView.layer.masksToBounds = YES;
    
    self.titImgView.layer.cornerRadius = 5;
    self.titImgView.layer.masksToBounds = YES;
    [_titImgView setUserInteractionEnabled:YES];
    
    
    //iOS 8.0
    /* * 模糊效果的三种风格
     *
     *  @param UIBlurEffectStyle
     *
     * UIBlurEffectStyleExtraLight,  //高亮
     * UIBlurEffectStyleLight,       //亮
     * UIBlurEffectStyleDark         //暗
     */
    

    //1.获取CIIamge对象
//    CIImage * ciIamge = [CIImage imageWithCGImage:_titImgView.image.CGImage];
//    //    //2.创建滤镜对象
//    CIFilter *filter = [CIFilter filterWithName:@"CIMotionBlur"
//                                  keysAndValues:kCIInputImageKey, ciIamge, nil];
//    // 获取绘制上下文
//    CIContext *context = [CIContext contextWithOptions:nil];
//    // 渲染并输出CIImage
//    CIImage *outputImage = [filter outputImage];
//    // 创建CGImage句柄
//    CGImageRef cgImage = [context createCGImage:outputImage
//                                       fromRect:[outputImage extent]];
//    self.blurImageVIew.image =[UIImage imageWithCGImage:cgImage];
//    self.blurImageVIew.contentMode = UIViewContentModeScaleAspectFill;
//    // 释放CGImage句柄
//    CGImageRelease(cgImage);
    //    self.blurImageVIew.image = self.iconImageView.image;
    
    
    // Initialization code
}

@end
